﻿namespace _1.MobilePhoneDevice
{
    public enum BatTypes
    {
        LiIon, Alcal, LiAComb, Unknown
    }
    public class Battery
    {

        private BatTypes batteryModel;
        private int hoursIdle;
        private int hoursTalk;

        // properties
        public BatTypes BatteryModel
        {
            get { return this.batteryModel; }
        }
        public int HoursIdle
        {
            get { return this.hoursIdle; }
        }
        public int HoursTalk
        {
            get { return this.hoursTalk; }
        }
        // **************************************************
        // Constructors
        public Battery(BatTypes batteryModel)
        {
            this.batteryModel = batteryModel;
            this.hoursIdle = 0;
            this.hoursTalk = 0;
        }
        public Battery(BatTypes batteryModel, int hoursIdle)
        {
            this.batteryModel = batteryModel;
            this.hoursIdle = hoursIdle;
            this.hoursTalk = 0;
        }

        public Battery(int hoursIdle, int hoursTalk)
        {
            this.batteryModel = BatTypes.Unknown;
            this.hoursIdle = hoursIdle;
            this.hoursTalk = hoursTalk;
        }
        public Battery(BatTypes batteryModel, int hoursIdle, int hoursTalk)
        {
            this.batteryModel = batteryModel;
            this.hoursIdle = hoursIdle;
            this.hoursTalk = hoursTalk;
        }
        //**************************************************
    }
}